import request_bkny from "@/api/axios_bkny"
import request2 from "@/api/axios2"
//远程请求的api

//projectID String

/**
 * 获取token
 * @param {用户名密码} params 
 * @returns 
 */
const getToken = (data) => {
    return request2({
        url: '/login',
        method: 'post',
        data
    })
}
/**
 * 获取单个项目信息
 * @param {projectID} params 
 * @returns 
 */
const getrega = (params) => {
    return request_bkny({
        url: '/bkrega/pid/' + params.id,
        method: 'get',
        params
    })
}
/**
 * 远程接口（动态拼接接口地址）
 * @param {projectID} params 
 * @returns 
 */
const regaList2 = (params) => {
    return request_bkny({
        url: '/bk/reg'+params.listId+'/list2',
        method: 'post',
        params
    })
}


export {getToken,getrega,regaList2}
